package com.mvvm.library.base;

import java.io.Serializable;

/**
 * @创建时间：2023/2/27
 * @作者：小蔡
 * @功能介绍：XBaseBean 实体类的基类
 */
public class BaseBean<T> implements Serializable {
    private String resultCode;
    private String resultContent;
    private T resultData;

    public String getResultCode() {
        return resultCode;
    }

    public void setResultCode(String resultCode) {
        this.resultCode = resultCode;
    }

    public String getResultContent() {
        return resultContent;
    }

    public void setResultContent(String resultContent) {
        this.resultContent = resultContent;
    }

    public T getResultData() {
        return resultData;
    }

    public void setResultData(T resultData) {
        this.resultData = resultData;
    }

    public boolean isSuccess() {

        return "1".equals(resultCode);
    }

    public boolean isForce() {
        return "2".equals(resultCode);
    }
}
